package com.intlke.example.app.response;

import java.io.Serializable;

/**
 * <p>描述:</p>
 * <p>请在此处填写描述</p>
 *
 * @author fengwenping
 * @version 1.0.0
 * @since 2024/11/10 22:12
 */
public class ResponseVO<T> implements Serializable {
    private Boolean success;
    private String code;
    private String message;
    private T data;

    public ResponseVO() {
        success = true;
        code = ResponseState.SUCCESS.getCode();
        message = ResponseState.SUCCESS.getMessage();
    }

    public Boolean getSuccess() {
        return success;
    }

    public ResponseVO<T> setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public String getCode() {
        return code;
    }

    public ResponseVO<T> setCode(String code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public ResponseVO<T> setMessage(String message) {
        this.message = message;
        return this;
    }

    public T getData() {
        return data;
    }

    public ResponseVO<T> setData(T data) {
        this.data = data;
        return this;
    }
}
